package com.woniuxy.qiantai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author firstGroup
 * @since 2023-02-22 11:56:24
 */
@Getter
@Setter
@TableName("t_orderitem")
public class Orderitem {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("product_id")
    private Integer productId;

    @TableField("price")
    private BigDecimal price;

    @TableField("count")
    private Integer count;

    @TableField("order_id")
    private Integer orderId;

    @TableField("stutus")
    private Integer stutus;

    @TableField("shop_id")
    private Integer shopId;

    @Override
    public String toString() {
        return "Orderitem{" +
                "id=" + id +
                ", userId=" + userId +
                ", productId=" + productId +
                ", price=" + price +
                ", count=" + count +
                ", orderId=" + orderId +
                ", stutus=" + stutus +
                ", shopId=" + shopId +
                '}';
    }
}
